#include "Human.h"

Human::Human() { reset(); }

void
Human::reset(void) {

	// TODO Jugar con estos parametros
	OpenSteer::SimpleVehicle::reset();	// reset the vehicle 
	setSpeed(0.5f);											// speed along Forward direction.
	setMaxForce(0.5f);									// steering force clipped to magnitude
	setMaxSpeed(4);											// velocity is clipped to this magnitude
	clearTrailHistory();								// prevent long streaks
}

void
Human::update(const float currentTime, const float elapsedTime) {

	applySteeringForce(steerForWander(elapsedTime).setYtoZero(), elapsedTime);

	annotationVelocityAcceleration ();
	recordTrailVertex (currentTime, position());
}

void
Human::draw() {

	drawBasic2dCircularVehicle (*this, OpenSteer::gMagenta);
	drawTrail ();
}

